package com.gc.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gc.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.util.Date;

/**
 * 积分订单表 gc_integral_order
 * 
 * @author liujinteng
 * @date 2021-01-04
 */
@EqualsAndHashCode(callSuper = true)
@ToString
@Data
@Accessors(chain = true)
@TableName("gc_integral_order")
public class IntegralOrder extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    private Long orderId;
	
    /**
    * 商品ID 
    */
    private Long goodsId;
    /**
    * 用户ID
    */
    private Long userId;
    /**
     * 用户姓名
     */
    private String userName;
    /**
    * 订单编号
    */
    private String orderNum;
    /**
    * 兑换数量
    */
    private Integer exchangeCount;
    /**
    * 积分支付
    */
    private Integer payIntegral;
    /**
    * 兑换时间
    */
    private String exchangeTime;
    /**
    * 兑换状态(0.未兑换,1.已兑换)
    */
    private String exchangeStatus;

    /** 积分商品 **/
    @TableField(exist = false)
    private IntegralGoods integralGoods;
}
